package com.ruoyi.sign.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤管理对象 sign_in
 *
 * @author ruoyi
 * @date 2023-12-01
 */
public class SignIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签到id */
    private Long signId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userId;

    /** 签到日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 考勤状态 */
    @Excel(name = "考勤状态")
    private String status;

    /** 签到时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkIn;

    /** 签退时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签退时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date signOut;

    public void setSignId(Long signId)
    {
        this.signId = signId;
    }

    public Long getSignId()
    {
        return signId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCheckIn(Date checkIn)
    {
        this.checkIn = checkIn;
    }

    public Date getCheckIn()
    {
        return checkIn;
    }
    public void setSignOut(Date signOut)
    {
        this.signOut = signOut;
    }

    public Date getSignOut()
    {
        return signOut;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("signId", getSignId())
                .append("userId", getUserId())
                .append("date", getDate())
                .append("status", getStatus())
                .append("checkIn", getCheckIn())
                .append("signOut", getSignOut())
                .toString();
    }
}
